<?php


namespace App\Http\Controllers\Home;


use App\Http\Controllers\Controller;
use App\Http\Status;
use Illuminate\Support\Facades\DB;

class RotationsController extends Controller
{
    // 获取所有的轮播图
    public function getAllRotations()
    {
        return response()->json([
            "code"  =>  Status::$OK,
            "msg"   =>  Status::$OK_MSG,
            "data"  =>  DB::table("lar_rotations")->get()
        ]);
    }
}
